package me.whf.model;

import java.io.Serializable;
import java.util.Date;

public class Logger implements Serializable, Comparable<Logger> {
	private Date logDate;
	private String operatorID;
	private String content;
	private String accountID;
	
	public Logger(Date logDate, String operatorID, String content, String accountID) {
		this.logDate = logDate;
		this.operatorID = operatorID;
		this.content = content;
		this.accountID = accountID;
	}

	public String getAccountID() {
		return accountID;
	}

	public void setAccountID(String accountID) {
		this.accountID = accountID;
	}

	public Date getLogDate() {
		return logDate;
	}

	public void setLogDate(Date logDate) {
		this.logDate = logDate;
	}

	public String getOperatorID() {
		return operatorID;
	}

	public void setOperatorID(String operatorID) {
		this.operatorID = operatorID;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	@Override
	public int compareTo(Logger logger) {
		return this.logDate.compareTo(logger.logDate);
	}
}
